#ifndef THREADSAFEDATETIMEMETHODS_H
#define THREADSAFEDATETIMEMETHODS_H

#include <QObject>
#include <QMutex>
class ThreadSafeDatetimeMethods : public QObject
{
    Q_OBJECT
public:
    explicit ThreadSafeDatetimeMethods(QObject *parent = 0);
    static QDateTime currentDateTime();
    static QDateTime fromString(const QString &string, Qt::DateFormat format = Qt::TextDate);
    static QDateTime fromString(const QString &string, const QString &format);
    static QDateTime fromTime_t(uint seconds);
signals:

public slots:

private:
    static QMutex mutex;
};

#endif // THREADSAFEDATETIMEMETHODS_H
